package vn.fsoft.gst.service;

import org.springframework.stereotype.Service;

/**
 * @author MinhNT
 *
 */
@Service
public class validateServiceImp  implements ValidateService{
	public Boolean validate(String directorateName, int contactID, int addresID,
			String addressLine1, String phone, String descriptionShort){
		if (addresID<= 0 || contactID<=0 || directorateName.length()<5 ||directorateName.length() >100
				 ||descriptionShort.length()< 4 
				|| descriptionShort.length() >100 || addressLine1.length() < 4
				||addressLine1.length() > 100 || phone.length() != 10 ){
			return false;
		}
		return true;
	}
}
